package cn.flying.cloud.flow.core.enums;

import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * 流程审批状态
 *
 * @author: admin
 * @date: 2024年10月22日 15:59
 * @version: 1.0
 */
public enum FlowStateEnum implements BaseEnumInfo {

    Success("success", "审批通过"),
    Refuse("refuse", "审批拒绝"),
    Reject("reject", "审批驳回"),
    Running("running", "正在审批"),
    Waiting("waiting", "等待审批"),
    Cancel("cancel", "流程撤回"),
    Delete("delete", "流程作废"),
    ;

    private final String code;
    private final String text;

    FlowStateEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    /**
     * 获取枚举码值
     *
     * @return
     */
    @Override
    public String getCode() {
        return code;
    }

    /**
     * 获取枚举描述
     *
     * @return
     */
    @Override
    public String getDesc() {
        return text;
    }
}
